projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32c0c6f
)
gtkswitch.c: Fix Build on C89 Compilers
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 04:14:24 +0000
(12:14 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 04:14:24 +0000
(12:14 +0800)
This file now uses round(), which was not available until C99, so include
fallback-c89.c instead of math.h, which includes math.h and does a fallback
implementation of round().
gtk/gtkswitch.c
patch
|
blob
|
history
diff --git
a/gtk/gtkswitch.c
b/gtk/gtkswitch.c
index 1f5692c8bc8c4faf0135b2419ae95ead424f7911..1ab12b5d92a50bbdaa96a1140f0959dc49f16360 100644
(file)
--- a/
gtk/gtkswitch.c
+++ b/
gtk/gtkswitch.c
@@
-53,7
+53,7
@@
#include "gtkactionhelper.h"
#include "gtkwidgetprivate.h"
-#include
<math.h>
+#include
"fallback-c89.c"
#define DEFAULT_SLIDER_WIDTH (36)